﻿using PageTypeBuilder;

namespace JoelAbrahamsson.PageTypes
{
    public abstract class BasePageData : TypedPageData
    {
        public abstract string ControllerName { get; }

        public virtual string PageURLSegment
        {
            get
            {
                return this.GetPropertyValue(page => page.PageURLSegment);
            }
        }

        public virtual string Slug
        {
            get
            {
                return this.GetPropertyValue(page => page.PageURLSegment);
            }
        }
    }
}
